<?php

class Default_Model_Table_Message extends Zend_Db_Table_Abstract
{
    protected $_name = 'message_admin';
    
    public function addMessage($name, $phone, $mail, $message)
    {
        $data = array(
            'name' => $name,
            'phone' => $phone,
            'mail'=>$mail,
            'text'=>$message,
            'unread'=>'1'
        );
        $this->insert($data);
    }

}